<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
    <!--[if IE 6]>
    <script src="js/iepng.js" type="text/javascript"></script>
    <script type="text/javascript">
        EvPNG.fix('div, ul, img, li, input, a');
    </script>
    <![endif]-->

    <script type="text/javascript" src="js/vue.min.js"></script>
    <script type="text/javascript" src="js/axios.min.js"></script>

    <title>尤洪</title>
</head>
<body>
<div id="app">
    <label>邮箱</label>
    <input v-model="email"/>
    <span>{{email}}</span>
    <button @click="sendEmail">测试邮箱</button><br/>
    <label>邮箱验证码</label>
    <input v-model="emailcode"/>
    <span>{{emailcode}}</span>
    <button @click="sendEmailCode">测试邮箱验证码</button>
    <label>手机号</label>
    <input v-model="mobile"/>
    <span>{{mobile}}</span>
    <button @click="sendMobile">测试手机</button>
</div>

<!--End Footer End -->

<script type="text/javascript">
    var vm = new Vue({
        el:'#app',
        data:{
            email:'',
            emailcode:'',
            mobile:'',
            mobilecode:''
        },
        methods:{
            sendEmail(){
                alert(this.email)
                axios.get('index/findpwdByEmail/'+this.email).then(rs => {
                    console.log(rs.data);
                })
            },
            sendMobile(){
                alert(this.mobile)
                axios.get('index/findpwdByMobile/'+this.mobile).then(rs => {
                    console.log(rs.data);
                })
            },
            sendEmailCode(){
                alert(this.emailcode)
                axios.get('index/findpwdcheckEmailCode/'+this.email+'/'+this.emailcode).then(rs =>{
                    console.log("检查邮箱验证码");
                console.log(rs.data);
            })
            }
        }
    })



</script>
</body>


<!--[if IE 6]>
<script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>
